
package miui.xmpp;

import miui.xmpp.message.Iq;
import miui.xmpp.message.Message;

public interface XmppServerListener {

    void onAccept(XmppServer server, String ip, int port);

    void onConnectionClosed(XmppServer server, String ip, int port);

    void onReceived(XmppServer server, String ip, int port, Iq iq);

    void onReceived(XmppServer server, String ip, int port, Message message);
}